﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 垃圾小游戏.class3;

namespace 垃圾小游戏.class4
{
    class Wall:GameObject
    {
        public Wall(int x,int y)
        {
            pos = new Position(x,y);//设置位置
        }
        public override void Draw()
        {
            Console.SetCursorPosition(pos.x, pos.y);//设置光标
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("■");
        }
    }
}
